﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PopShops.Entities
{
    public class Network
    {
        #region Public Properties

        [XmlAttribute("id")]
        public int NetworkID { get; set; }
        [XmlAttribute("name")]
        public string Name { get; set; }

        #endregion

        #region Ctor

        public Network()
        { }

        public Network(int id, string name)
        {
            this.NetworkID = id ;
            this.Name = name;
        }

        #endregion
    }

    [XmlRoot("networks")]
    public class Networks
    {
        public Networks()
        { }

        [XmlAttribute("total_count")]
        public long TotalCount { get; set; }

        [XmlElement("network")]
        public List<Network> NetworkCollection { get; set; }
    }
}